package com.iov.failurelog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 故障日志对象 tb_failurelog
 * 
 * @author ruoyi
 * @date 2023-11-22
 */
public class TbFailurelog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** VIN */
    @Excel(name = "VIN")
    private String vin;

    /** 故障码 */
    @Excel(name = "故障码")
    private String failureCode;

    /** 开始报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statusTime;

    /** 结束报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 处理人 */
    @Excel(name = "处理人")
    private Long adminId;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handletime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVin(String vin) 
    {
        this.vin = vin;
    }

    public String getVin() 
    {
        return vin;
    }
    public void setFailureCode(String failureCode) 
    {
        this.failureCode = failureCode;
    }

    public String getFailureCode() 
    {
        return failureCode;
    }
    public void setStatusTime(Date statusTime) 
    {
        this.statusTime = statusTime;
    }

    public Date getStatusTime() 
    {
        return statusTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }
    public void setHandletime(Date handletime) 
    {
        this.handletime = handletime;
    }

    public Date getHandletime() 
    {
        return handletime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vin", getVin())
            .append("failureCode", getFailureCode())
            .append("statusTime", getStatusTime())
            .append("endTime", getEndTime())
            .append("adminId", getAdminId())
            .append("handletime", getHandletime())
            .toString();
    }



}
